﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Core;

namespace Entities
{
    public class User
    {
        public Guid ApplicationId { get; set; }
        public Guid UserId { get; set; }
        public string UserName { get; set; }

        public string LoweredUserName { get; set; }
        public string MobileAlias { get; set; }
        public bool IsAnonymous { get; set; }
        public DateTime LastActivityDate { get; set; }
        public User() { }
        public static List<User> LayTatCa()
        {
            try
            {
                return CBO.FillCollection<User>(DataProvider.Instance.ExecuteReader("aspnet_Users_LayTatCa"));

            }
            catch
            {

                return new List<User>();
            }
        }
    }
}
